package com.stulab.sofarpc.consumer;

import org.springframework.stereotype.Service;

import com.alipay.sofa.runtime.api.annotation.SofaService;
import com.alipay.sofa.runtime.api.annotation.SofaServiceBinding;
import com.stulab.sofarpc.api.CalService;

@SofaService(interfaceType = CalService.class, bindings = { @SofaServiceBinding(bindingType = "bolt") })
@Service
public class CalServiceImpl implements CalService {

	@Override
	public Double cal(Double a, Double b) {
		return a+b;
	}
	
	@Override
	public String calString(Integer t) {
		return t+"";
	}
	
	@Override
	public String calEmpty() {
		return "Empty";
	}
	
}
